<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>获取设置非行间样式 </title>
		<style type="text/css">
			#div1{
				width: 200px;
				height: 200px;
				background: red;
			}
		</style>
	</head>
	<body>
		<script>
			function getStyle(obj,name,value){
				
			}
			window.onload=function(){
				var div1=document.getElementById("div1");
				getStyle(div1,'background','green');
				alert(getStyle(div1,'width'));
			}
		</script>
	</body>
</html>
